package com.xz.design.patterns.observer;

public class WeiXInUser implements Observer{

    private String name;

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void update(String messgae) {
        System.out.println(name+"-"+messgae);
    }
}
